﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="WebEFDemo.Add" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width:500px; margin:auto;">
            <tr><td><h3>添加新学员</h3></td></tr>
            <tr>
                <td>姓名</td>
                <td>
                    <asp:TextBox ID="txt_name" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>年龄</td>
                <td>
                    <asp:TextBox ID="txt_age" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>手机</td>
                <td>
                    <asp:TextBox ID="txt_phone" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>邮箱</td>
                <td>
                    <asp:TextBox ID="txt_email" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>班级</td>
                <td>
                        <asp:DropDownList ID="dropclass" runat="server">
                            <asp:ListItem Selected="True" Value="1">.NET班</asp:ListItem>
                            <asp:ListItem Value="2">Android班</asp:ListItem>
                            <asp:ListItem Value="3">JAVA班</asp:ListItem>
                        </asp:DropDownList></td>
            </tr>
            <tr>
                <td></td>
               <td><asp:Button ID="btn_add" runat="server" Text="添加学员" BackColor="#00CC00" OnClick="btn_add_Click" /></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
